package com.daigoudao.web.dao;

import java.util.List;

import com.daigoudao.web.model.BasePageModel;
import com.daigoudao.web.model.CanBuyModel;
import com.daigoudao.web.model.PurchaseRecord;

/**
 * 代购数据操作类
 * 
 * @author zheng
 * 
 */
public interface ICanBuyDao {

	/**
	 * 添加代购信息
	 * 
	 * @param canBuyInfo
	 * @throws Exception
	 */
	public int addCanBuy(CanBuyModel canBuyModel) throws Exception;

	/**
	 * 修改代购信息
	 * 
	 * @param canBuyInfo
	 * @throws Exception
	 */
	public void updateCanBuy(CanBuyModel canBuyModel) throws Exception;

	/**
	 * 修改代购信息状态
	 * 
	 * @param canBuyInfo
	 * @throws Exception
	 */
	public void updateCanBuyStatus(CanBuyModel canBuyModel) throws Exception;

	/**
	 * 删除代购信息
	 * 
	 * @param canBuyId
	 * @throws Exception
	 */
	public void delCanBuy(int canId) throws Exception;

	/**
	 * 查询代购信息
	 * 
	 * @param canBuyInfo
	 * @return
	 * @throws Exception
	 */
	public List<CanBuyModel> queryCanBuys(CanBuyModel canBuyModel)
			throws Exception;

	/**
	 * 获取代购记录数
	 * 
	 * @param canBuyInfo
	 * @return
	 * @throws Exception
	 */
	public int getCanBuyCount(CanBuyModel canBuyInfo) throws Exception;

	public List<CanBuyModel> getHotCanBuyList() throws Exception;

	public CanBuyModel queryCanBuyDetail(int canId) throws Exception;

	/**
	 * 查询指定用户发布的其他代购信息
	 * 
	 * @param canBuyModel
	 * @return
	 * @throws Exception
	 */
	public List<CanBuyModel> queryOtherCanBuys(CanBuyModel canBuyModel)
			throws Exception;

	public void insertImages(CanBuyModel canBuyModel) throws Exception;

	public void deleteImages(int canId) throws Exception;

	
}
